{php load()->func('tpl')}
<input type="hidden" name="reply_id" value="{$reply['id']}" />

    <div class="panel panel-default">
            <div class="panel-heading">
                基本信息 
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">封面标题</label>
                    <div class="col-xs-12 col-sm-9">
                         <input type="text" class="form-control" placeholder="" name="title" value="{$reply['title']}" />
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">封面图片</label>
                    <div class="col-xs-12 col-sm-9">
                         {php echo tpl_form_field_image('thumb',$reply['thumb']);}
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">封面简介</label>
                    <div class="col-xs-12 col-sm-9">
                         <textarea style="height:70px;" class="form-control" id="description" name="description" cols="70">{$reply['description']}</textarea>
                    </div>
                </div>
         
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">版权信息</label>
                    <div class="col-xs-12 col-sm-9">
                         <input type="text" class="form-control" placeholder="" name="copyright" value="{$reply['copyright']}" />
                         <span class="help-block">版权信息，不填写默认公众号名称</span>
                    </div>
                </div>
                
                 <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">关注设置</label>
                    <div class="col-xs-12 col-sm-9">
                        <label class='radio-inine'>
                            <input type='radio' name='follow_need' value='1' {if $reply['follow_need']==1}checked{/if} /> 必须关注
                        </label>
                        <label class='radio-inine'>
                            <input type='radio' name='follow_need' value='0' {if empty($reply['follow_need'])}checked{/if} /> 不需要关注
                        </label>
                         <span class="help-block">必须关注才能进行许愿</span>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">引导关注页</label>
                    <div class="col-xs-12 col-sm-9">
                         <input type="text" class="form-control" placeholder="" name="follow_url" value="{$reply['follow_url']}" />
                         <span class="help-block">引导关注页面</span>
                    </div>
                </div>
                
                
            </div>
        </div>
      
    <div class="panel panel-default">
    <div class="panel-heading">
        样式自定义
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">顶部图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('diy_topimg',$reply['diy_topimg'],'../addons/ewei_dream/style/top-form.png');}
            </div>
        </div>
           <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">背景颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_bgcolor',empty($reply['diy_bgcolor'])?'#2f333c':$reply['diy_bgcolor']);}
            </div>
        </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">文字颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_fontcolor',empty($reply['diy_fontcolor'])?'#fff':$reply['diy_fontcolor']);}
                    <span class="help-block">页面文字颜色</span>
            </div>
        </div>
          <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">按钮颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_btncolor',empty($reply['diy_btncolor'])?'#13afbe':$reply['diy_btncolor']);}
                    <span class="help-block">按钮颜色</span>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">按钮文字颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_btnfontcolor',empty($reply['diy_btnfontcolor'])?'#fff':$reply['diy_btnfontcolor']);}
                    <span class="help-block">按钮文字颜色</span>
            </div>
        </div>
        
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">输入框背景颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_inputcolor',empty($reply['diy_inputcolor'])?'#24262c':$reply['diy_inputcolor']);}
                    <span class="help-block">输入框背景颜色</span>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">输入框文字颜色</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_color('diy_inputtextcolor',empty($reply['diy_inputtextcolor'])?'#fff':$reply['diy_inputtextcolor']);}
                    <span class="help-block">输入框文字颜色</span>
            </div>
        </div>
        
        
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享顶部图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('diy_topimgshare',$reply['diy_topimgshare'],'../addons/ewei_dream/style/top-share.png');}
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享证书图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('diy_paperimg',$reply['diy_paperimg'],'../addons/ewei_dream/style/paper.png');}
            </div>
        </div>
        
        
    </div>
</div>

 <div class="panel panel-default">
    <div class="panel-heading">
        文字自定义
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">标题1</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="diy_title1" value="{php echo !empty($reply['diy_title1'])?$reply['diy_title1']:'2015，我要'}" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">标题2</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="diy_title2" value="{php echo !empty($reply['diy_title2'])?$reply['diy_title2']:'他们都想要：'}" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认梦想</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="dreams" value="{php echo !empty($reply['dreams'])?$reply['dreams']:'学会编程 坚持读书 有腹肌 摆脱晚睡 考过六级 找到男朋友'}" />
                 <span class='help-block'>如果参与人数不够 6个，则用其中的随机补充</span>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">标题3</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="diy_title3" value="{php echo !empty($reply['diy_title3'])?$reply['diy_title3']:'若没完成目标，我甘愿：'}" />
            </div>
        </div>
      
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认惩罚</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="punishments" value="{php echo !empty($reply['punishments'])?$reply['punishments']:'献上灵魂 吃键盘 请所有转发的朋友吃饭 跪CPU 穿女仆装爆照 向老板表白'}" />
                 <span class='help-block'>如果参与人数不够 6个，则用其中的随机补充</span>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">标题4</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="diy_title4" value="{php echo !empty($reply['diy_title4'])?$reply['diy_title4']:'他们都对自己这么狠：'}" />
            </div>
        </div>
        
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">提交按钮文字</label>
            <div class="col-sm-9 col-xs-12">
               	 <input type="text" class="form-control" placeholder="" name="diy_btntext" value="{php echo !empty($reply['diy_btntext'])?$reply['diy_btntext']:'为了梦想，来和我签订契约吧!'}" />
                 <span class='help-block'>如果参与人数不够 6个，则用其中的随机补充</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">背景音乐</label>
            <div class="col-sm-9 col-xs-12">
                 {php echo tpl_form_field_audio('diy_audio', $reply['diy_audio'])}
            </div>
        </div>
    </div>
</div>
 
 
<script text="text/javascript">
    require(['util'],function(util){
        $(".richtext-clone").each(function(){
           util.editor($(this)[0]);   
        })
         
    })
</script>

